package org.longgang.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * project
 * @author 
 */
public class Project implements Serializable {
    /**
     * 项目id
     */
    private Integer projectid;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 项目名
     */
    private String project;

    /**
     * 项目职责
     */
    private String projectposition;

    /**
     * 开始时间
     */
    private Date projectstarttime;

    /**
     * 结束时间
     */
    private Date projectendtime;

    /**
     * 项目描述
     */
    private String projectstatement;

    /**
     * 备用
     */
    private String b1;

    /**
     * 备用
     */
    private String b2;

    private static final long serialVersionUID = 1L;

    public Integer getProjectId() {
        return projectid;
    }

    public void setProjectId(Integer projectid) {
        this.projectid = projectid;
    }

    public Integer getUserId() {
        return userid;
    }

    public void setUserId(Integer userid) {
        this.userid = userid;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getProjectPosition() {
        return projectposition;
    }

    public void setProjectPosition(String projectposition) {
        this.projectposition = projectposition;
    }

    public Date getProjectStartTime() {
        return projectstarttime;
    }

    public void setProjectStartTime(Date projectstarttime) {
        this.projectstarttime = projectstarttime;
    }

    public Date getProjectEndTime() {
        return projectendtime;
    }

    public void setProjectEndTime(Date projectendtime) {
        this.projectendtime = projectendtime;
    }

    public String getProjectStatement() {
        return projectstatement;
    }

    public void setProjectStatement(String projectstatement) {
        this.projectstatement = projectstatement;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Project other = (Project) that;
        return (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getProject() == null ? other.getProject() == null : this.getProject().equals(other.getProject()))
            && (this.getProjectPosition() == null ? other.getProjectPosition() == null : this.getProjectPosition().equals(other.getProjectPosition()))
            && (this.getProjectStartTime() == null ? other.getProjectStartTime() == null : this.getProjectStartTime().equals(other.getProjectStartTime()))
            && (this.getProjectEndTime() == null ? other.getProjectEndTime() == null : this.getProjectEndTime().equals(other.getProjectEndTime()))
            && (this.getProjectStatement() == null ? other.getProjectStatement() == null : this.getProjectStatement().equals(other.getProjectStatement()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getProject() == null) ? 0 : getProject().hashCode());
        result = prime * result + ((getProjectPosition() == null) ? 0 : getProjectPosition().hashCode());
        result = prime * result + ((getProjectStartTime() == null) ? 0 : getProjectStartTime().hashCode());
        result = prime * result + ((getProjectEndTime() == null) ? 0 : getProjectEndTime().hashCode());
        result = prime * result + ((getProjectStatement() == null) ? 0 : getProjectStatement().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", projectid=").append(projectid);
        sb.append(", userid=").append(userid);
        sb.append(", project=").append(project);
        sb.append(", projectposition=").append(projectposition);
        sb.append(", projectstarttime=").append(projectstarttime);
        sb.append(", projectendtime=").append(projectendtime);
        sb.append(", projectstatement=").append(projectstatement);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}